<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<div id="paperGrid"></div>
<div id="paperToolbar">
	<div>
		<a href="#" class="easyui-linkbutton" onclick="paper.toolbar.showAddDialog();" data-options="
		iconCls:'icon-add',
		plain:true">
			手动生成
		</a>
		<a href="#" class="easyui-linkbutton" onclick="paper.toolbar.showAccordAddDialog();" data-options="
		iconCls:'icon-edit',
		plain:true">
			自动生成
		</a>
		<a href="#" class="easyui-linkbutton" onclick="paper.toolbar.showDetailsDialog();" data-options="
		iconCls:'icon-details',
		plain:true">
			试卷详情
		</a>
		<a href="#" class="easyui-linkbutton" onclick="paper.toolbar.paperPreviewDialog();" data-options="
		iconCls:'icon-preview',
		plain:true">
			试卷预览
		</a>
		<a href="#" class="easyui-linkbutton" onclick="paper.toolbar.paperRebuildPaper();" data-options="
		iconCls:'icon-edit',
		plain:true">
			重新生成
		</a>
		<a href="#" class="easyui-linkbutton" onclick="paper.toolbar.DetailspaperState();" data-options="
		iconCls:'icon-mini-edit',
		plain:true">
			有效/无效
		</a>
		<a href="#" class="easyui-linkbutton" onclick="paper.toolbar.redo();" data-options="
		iconCls:'icon-redo',
		plain:true">
			取消
		</a>
	</div>
	<div >
		<strong>试卷名称：</strong>
		<input type="text" name="paper" id="paper-name"/>
		<strong>所属课程：</strong>
		<input type="text" name="paper" id="paper-course"  />
		<strong>试卷状态：</strong>
			<select name="paper-state" id="paper-state">
				<option value=""></option>
				<option value="1">启用</option>
				<option value="2">禁用</option>
			</select>
		<a href="#" class="easyui-linkbutton" onclick="paper.toolbar.search()" data-options="
		iconCls:'icon-search',
		plain:true">
			查询
		</a>
	</div>
</div>

<div id="paperAddDialog" class="easyui-dialog clazz-add" style="width:900px; max-height: 500px" data-options="
title:'新增试卷',
buttons:'#paperAddButtons',
closed: true,
resizable: true,
onClose:paper.toolbar.resetAddFrom">
	<form id="paperAddForm" method="post">
	<div style="float:left;width:349px">
		<p>
			<strong>试卷名称：</strong>
			<input type="text" id="add-paper-name" name="name" class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>试卷类型：</strong>
			<select id="add-paper-type" name="type" class="easyui-validatebox" data-options="
			required:true">
				<option value="1">平常测试</option>
				<option value="2">结业考试</option>
			</select>
		</p>
		<p>
			<strong>所属课程：</strong>
			<input type="text" id="add-paper-course" name="course" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>总分分数：</strong>
			<input type="text" id="add-paper-total-point" name="totalPoint" class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>通过分数：</strong>
			<input type="text" id="add-paper-pass-point" name="passPoint" class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>考试时长：</strong>
			<input type="text" id="add-paper-total-minutes" name="totalMinutes" class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>单选题数：</strong>
			<input type="text" id="add-paper-single-option-number" name="singleNumber" class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>单选分数：</strong>
			<input type="text" id="add-paper-single-option-each-point" name="singlePoint"  class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>单选难度：</strong>
			<select id="add-paper-single-option-difficulty" name="singleDifficulty" class="easyui-validatebox" data-options="
			required:true">
				<option value="1">低</option>
				<option value="2">中</option>
				<option value="3">较高</option>
				<option value="4">高</option>
			</select>
		</p>
		</div>
		<div style="float:right;width:349px">
			<p>
			<strong>多选题数：</strong>
			<input type="text" id="add-paper-multi-option-number" name="multiNumber" class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>多选分数：</strong>
			<input type="text" id="add-paper-multi-option-each-point" name="multiPoint" class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>多选难度：</strong>
			<select id="add-paper-multi-option-difficulty" name="multiDifficulty" class="easyui-validatebox" data-options="
			required:true">
				<option value="1">低</option>
				<option value="2">中</option>
				<option value="3">较高</option>
				<option value="4">高</option>
			</select>
		</p>
			<p>
			<strong>判断题数：</strong>
			<input type="text" id="add-paper-judge-option-number" name="judgeNumber" class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>判断分数：</strong>
			<input type="text" id="add-paper-judge-option-each-point" name="judgePoint" class="easyui-validatebox" data-options="
			required:true"></input>
		</p>
		<p>
			<strong>判断难度：</strong>
			<select id="add-paper-judge-option-difficulty" name="judgeDifficulty" class="easyui-validatebox" data-options="
			required:true">
				<option value="1">低</option>
				<option value="2">中</option>
				<option value="3">较高</option>
				<option value="4">高</option>
			</select>
		</p>
		</div>
	</form>
</div>
<div id="paperAddButtons">
	<a href="#" onclick="paper.toolbar.add()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-add',
	plain: true">
		试卷生成
	</a>
	<a href="#" onclick="paper.toolbar.hiddenAddDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>

<div id="paperAccordAddDialog" class="easyui-dialog clazz-add" style="width:450px; max-height: 500px" data-options="
title:'自动新增',
buttons:'#paperAccordAddButtons',
closed: true,
resizable: true,
onClose:paper.toolbar.resetAccordAddFrom">
	<form id="paperAccordAddForm" method="post">
		<div style="float:left;width:349px">
			<p>
				<strong>试卷名称：</strong>
				<input type="text" id="accord-paper-name" name="name" class="easyui-validatebox" data-options="
				required:true"></input>
			</p>
			<p>
				<strong>试卷类型：</strong>
				<select id="accord-paper-type" name="type" class="easyui-validatebox" data-options="
				required:true">
					<option value="1">平常测试</option>
					<option value="2">结业考试</option>
				</select>
			</p>
			<p>
				<strong>所属课程：</strong>
				<input type="text" id="accord-paper-course" name="course" data-options="
				required:true"></input>
			</p>
		</div>	
	</form>
</div>
<div id="paperAccordAddButtons">
	<a href="#" onclick="paper.toolbar.accordAdd()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-add',
	plain: true">
		试卷生成
	</a>
	<a href="#" onclick="paper.toolbar.hiddenAccordAddDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>

<div id="paperDetailsDialog" class="easyui-dialog clazz-add" style="width:900px;max-height: 500px" data-options="
title: '试卷详情',
buttons: '#paperDetailsButtons',
closed: true,
resizable: true,
onClose: paper.toolbar.resetDetailsFrom">
	<form id="paperDetailsForm" method="post">
	<input type="hidden" name="id"/>
		<div style="width: 350px;float: left;">
		<p>
			<strong>试卷名称：</strong>
			<input type="text" id="details-paper-name" readonly="readonly" name="name" ></input>
		</p>
		<p>
			<strong>存放地址：</strong>
			<input type="text" id="details-paper-url" readonly="readonly" name="url"></input>
		</p>
		<p>
			<strong>试卷类型：</strong>
			<input type="text" id="details-paper-type" readonly="readonly" name="type"></input>
		</p>
		<p>
			<strong>所属课程：</strong>
			<input type="text" id="details-paper-course" readonly="readonly" name="course"></input>
		</p>
		<p>
			<strong>总分分数：</strong>
			<input type="text" id="details-paper-total-point" readonly="readonly" name="totalPoint"></input>
		</p>
		<p>
			<strong>通过分数：</strong>
			<input type="text" id="details-paper-pass-point" readonly="readonly" name="passPoint"></input>
		</p>
		<p>
			<strong>考试时长：</strong>
			<input type="text" id="details-paper-total-minutes" readonly="readonly" name="totalMinutes"></input>
		</p>
		<p>
			<strong>单选题数：</strong>
			<input type="text" id="details-paper-single-option-number" readonly="readonly" name="singleNumber"></input>
		</p>
		<p>
			<strong>单选分数：</strong>
			<input type="text" id="details-paper-single-option-each-point" readonly="readonly" name="singlePoint"></input>
		</p>
		<p>
			<strong>单选难度：</strong>
			<input type="text" id="details-paper-single-option-difficulty" readonly="readonly" name="singleDifficulty"></input>
		</p>
		</div>
		<div style="width: 350px;float: right;">
			<p>
			<strong>多选题数：</strong>
			<input type="text" id="details-paper-multi-option-number" readonly="readonly" name="multiNumber"></input>
		</p>
		<p>
			<strong>多选分数：</strong>
			<input type="text" id="details-paper-multi-option-each-point" readonly="readonly" name="multiPoint"></input>
		</p>
		<p>
			<strong>多选难度：</strong>
			<input type="text" id="details-paper-multi-option-difficulty" readonly="readonly" name="multiDifficulty"></input>
		</p>
			<p>
			<strong>判断题数：</strong>
			<input type="text" id="details-paper-judge-option-number" readonly="readonly" name="judgeNumber"></input>
		</p>
		<p>
			<strong>判断分数：</strong>
			<input type="text" id="details-paper-judge-option-each-point" readonly="readonly" name="judgePoint"></input>
		</p>
		<p>
			<strong>判断难度：</strong>
			<input type="text" id="details-paper-judge-option-difficulty" readonly="readonly" name="judgeDifficulty"></input>
		</p>
		<p>
			<strong>操作者    ：</strong>
			<input type="text" id="details-paper-operate-user-id" readonly="readonly" name="operateName"></input>
		</p>
		<p>
			<strong>操作时间：</strong>
			<input type="text" id="details-paper-operate-time" readonly="readonly" name="operateTime"></input>
		</p>
		<p>
			<strong>试卷状态：</strong>
			<input type="text" id="details-paper-state" readonly="readonly" name="state"></input>
		</p>
		</div>
	</form>
</div>
<div id="paperDetailsButtons">
	<a href="#" onclick="paper.toolbar.hiddenDetailsDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		返回
	</a>
</div>


<div id="paperPreviewDialog" class="easyui-dialog" style="width:1024px;height:600px" data-options="
title: '试卷预览',
buttons: '#paperPreviewButtons',
closed: true,
resizable: true,
onClose:paper.toolbar.hiddenPreviewDialog
">
</div>
<div id="paperPreviewButtons">
	<a href="#" onclick="paper.toolbar.hiddenPreviewDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		返回
	</a>
</div>

<script>
 window.ctx = "<%=request.getContextPath() %>"
</script>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/questionBank/js/test-paper.js"></script>

